<template>
	<view class="mx-20">
		<u-cell-group customStyle="background:#fff" v-if="list.length !=0">
			<u-cell value="" v-for="val,i in list" :key="i">
				<view slot="title" class="u-slot-title"
					@click="$pub.go(`/pages/index/detailGoods/detailGoods?data=${encodeURIComponent(JSON.stringify(val))}`)">
					<image class="pr-5" src="/static/img/cate/file.svg" style="width: 26rpx;height: 24rpx;" mode="">
					</image>
					<text class="u-cell-text">{{val.name}}</text>
				</view>
			</u-cell>
		</u-cell-group>
		<view class="" v-else>
			<u-empty mode="data"></u-empty>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		methods: {

		},
		onLoad(options) {
			if (options.data) {
				let val = JSON.parse(decodeURIComponent(options.data))
				this.list = val
			}
		},
	}
</script>

<style lang="scss">

</style>